package cn.jiyun.service;

import cn.jiyun.entity.ContestDTO;
import cn.jiyun.entity.ContestVO;
import cn.jiyun.entity.Result;
import cn.jiyun.entity.Typo;
import com.github.pagehelper.PageInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Author weiyuanhang
 * @data: 2023/8/28 002815:49
 * @Package cn.jiyun.service
 * @email 3185757326@qq.com
 */
@FeignClient(value = "day12contest")
public interface ContestFeignService {
    @PostMapping("/contest/findAll")
    public PageInfo<ContestVO> findAll(@RequestBody ContestDTO contestDTO);
    @GetMapping("/contest/findContestDate")
    public Result findContestDate();
    @GetMapping("/contest/findTypo")
    public List<Typo> findTypo();
}
